function fn() {
  let i = 0
  while (i < 5) {
    i++
    document.write(`i=${i} <br />`)
  }
}
fn()
